package ve.usb.crm;

import java.util.List;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;
import org.apache.struts.action.ActionErrors;
import org.apache.struts.action.ActionMapping;
import org.apache.struts.action.ActionMessage;
import ve.usb.cohesion.runtime.Pair;

/**
 *
 * @author vanessa
 */
public class FCambiarTheme extends org.apache.struts.action.ActionForm  {

      public FCambiarTheme() {
        super();
         theme = 0l;
         listTheme = null;

    }

    public void reset(ActionMapping mapping, HttpServletRequest request) {
         theme = 0l;
         listTheme = null;

    }

    public static FCambiarTheme clear(ActionMapping mapping, HttpServletRequest request) {
        HttpSession sess = request.getSession();
        FCambiarTheme fFCambiarTheme = (FCambiarTheme) sess.getAttribute("FCambiarTheme");
        if (fFCambiarTheme == null) {
            fFCambiarTheme = new FCambiarTheme();
            sess.setAttribute("FCambiarTheme", fFCambiarTheme);
        } else {
            fFCambiarTheme.reset(mapping, request);
        }
        return fFCambiarTheme;
    }

    private Long theme;

    private List<Pair> listTheme;

    public List<Pair> getListTheme() {
        return listTheme;
    }

    public void setListTheme(List<Pair> listTheme) {
        this.listTheme = listTheme;
    }


    public Long getTheme() {
        return theme;
    }

    public void setTheme(Long theme) {
        this.theme = theme;
    }


}
